#{extends 'main.html' /} 
#{set title:'Dentistas' /}

<div class="row">
	<div class="span12">

		<div>
		
			#{if !dentistas.empty}
		
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>Nome</th>
						<th>login</th>
						<th>cro</th>
						<th>Horário disponível</th>
						<th style="width:100px;"></th>
					</tr>
				</thead>
				<tbody>
					#{list items:dentistas, as: 'dentista'}
					<tr>
						<td>${dentista.nome}</td>
						<td>${dentista.login}</td>
						<td>${dentista.cro}</td>
						<td>${dentista.horarioCompleto}</td>
						<td>
							<a href="@{Dentistas.show(dentista.id)}"
							class="icon-folder-open"></a>
							
							<a href="@{Dentistas.delete(dentista.id)}"
							class="icon-remove" onclick="return confirm('Confirma?')"></a>
							
							
							
					</tr>
					#{/list}
				</tbody>
			</table>
			
			#{/if}
			
		</div>

		
		<div id="actions">
			<a href="@{Dentistas.create}" class="btn btn-success"><i class="icon-white icon-plus"></i></a>
		</div>
		
		
	</div>
</div>